package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.pojo.UserActive;
import com.zhentao.model.common.manger.vo.UserActiveVo;
import com.zhentao.service.UserActiveService;
import com.zhentao.mapper.UserActiveMapper;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;

import javax.annotation.Resource;
import java.util.List;

/**
* @author lenovo
* @description 针对表【user_active】的数据库操作Service实现
* @createDate 2024-10-09 10:47:39
*/
@Service
public class UserActiveServiceImpl extends ServiceImpl<UserActiveMapper, UserActive>
    implements UserActiveService{
    @Resource
    private UserActiveMapper userActiveMapper;

    @Override
    public ResponseResult findById(Integer activeId) {
        List<UserActiveVo> byId = userActiveMapper.findById(activeId);
        return ResponseResult.okResult(byId);
    }

    public static void main(String[] args) {
        System.out.println(DigestUtils.md5DigestAsHex(("admin"+"ytd250").getBytes()));
    }
}




